home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
ddj0897.zip
/
RCSC.ZIP
/
LIB51
/
FREE.C
< prev
next >
Wrap
Text File
|
1997-01-12
|
435b
|
17 lines
/*
** free(ptr) - Free previously allocated memory block.
** Memory must be freed in the reverse order from which
** it was allocated.
** ptr = Value returned by calloc() or malloc().
** Returns ptr if successful or NULL otherwise.
*/
free(ptr) char *ptr; {
/* need to disable interrupt to provide exclusive access
in multitasking environment */
disable();
_memptr = ptr;
enable();
return ptr;
}